package com.zznj.xzjc.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zznj.xzjc.R;
import com.zznj.xzjc.bean.JddwBean;
import com.zznj.xzjc.utils.StringUtils;

import java.util.List;

/**
 * 描述：适配器
 */
public class QzjddwAdapter extends BaseQuickAdapter<JddwBean, BaseViewHolder> {

    public QzjddwAdapter(int layoutResId, @Nullable List<JddwBean> data) {
        super(layoutResId, data);
    }
    @Override
    protected void convert(BaseViewHolder helper, JddwBean item) {
        helper.setText(R.id.tv_bjddw, StringUtils.toStringForWu(item.getOrgName()));
        helper.setText(R.id.tv_lxfs,StringUtils.toStringForWu(item.getAgentPhoneNumber()));
    }
}
